$OpenBSD: patch-src_Makefile_in,v 1.2 2012/06/21 14:40:40 gonzalo Exp $
--- src/Makefile.in.orig	Fri Mar  2 13:12:09 2012
+++ src/Makefile.in	Fri Mar  2 13:12:49 2012
@@ -56,7 +56,7 @@ am_pdnsd_OBJECTS = pdnsd-conf-parser.$(OBJEXT) pdnsd-c
 	pdnsd-thread.$(OBJEXT) pdnsd-cache.$(OBJEXT) \
 	pdnsd-hash.$(OBJEXT)
 pdnsd_OBJECTS = $(am_pdnsd_OBJECTS)
-pdnsd_LDADD = $(LDADD)
+pdnsd_LDADD = $(LDADD) @thread_CFLAGS@
 pdnsd_LINK = $(CCLD) $(pdnsd_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
 	$(LDFLAGS) -o $@
 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
